package twu.shubham.biblioteca;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created with IntelliJ IDEA.
 * User: nikku
 * Date: 8/13/13
 * Time: 8:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class ExampleTestsmovie {

    @Test
    public void test1() throws Exception {

        assertEquals(1, new movierecord().setValues(1, "Sholay", 1975, "R.Sippy", 7));
    }

    @Test
    public void test2() throws Exception {

        assertEquals(0, new movierecord().setValues(0,"Sholay",1975,"R.Sippy",7));
    }

    movierecord movie = new movierecord();
    int a = movie.setValues(1,"Sholay",1975,"R.Sippy",7)  ;

    @Test
    public void test3() throws Exception {

        assertEquals(1, movie.moviePrint());
    }

    @Test
    public void test4() throws Exception {

        assertEquals(0,new movierecord().moviePrint());
    }


}
